package com.rich.broker.service.feign;

import com.rich.common.entity.TbAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Package: com.rich.broker.service.feign
 * @Author: 张dy
 * @Date: Created in 2021/8/21 上午 9:02
 */
@FeignClient("rich-area")
@RequestMapping("/address")
public interface AddressMapper {

    /**
     * 查询单条
     * @Author: zdy
     * @Date:  下午 2:44
     * @param pid
     * @return java.util.List<com.rich.common.entity.TbAddress>
     **/

    /**
     * 三级联动
     * @param pid
     * @return
     */
    @PostMapping("/findById}")
    public List<TbAddress> findById(Long pid);
}
